#pragma once

#include <QWidget>
#include "ui_TopWidget.h"
class QMouseMoveEvent;

class TopWidget : public QWidget
{
	Q_OBJECT

public:
	TopWidget(QWidget *parent = nullptr);
	~TopWidget();
	void setBtnMaxIcon();
	void setBtnMaxNormalIcon();
	void moveButtonsMouseTrack();
signals:
	void closePlayer();
	void maximizePlayer();
	void minimizePlayer();
	void searchFinished(QString message);
	
private:
	Ui::TopWidgetClass ui;
	void initSearchEdit();
#ifdef QT_DEBUG
	void keyPressEvent(QKeyEvent* ev) override;
#endif // DEBUG

};
